package org.cfx.org.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.cfx.auth.domain.dto.LoginDto;
import org.cfx.basic.mapper.BaseMapper;
import org.cfx.basic.util.RolePermissionCount;
import org.cfx.basic.vo.UserExportVO;
import org.cfx.org.domain.Employee;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmployeeMapper extends BaseMapper<Employee>, com.baomidou.mybatisplus.core.mapper.BaseMapper<Employee> {


    Employee login(String username);


    List<RolePermissionCount> getRolePermissionCount();

    List<RolePermissionCount> getRole();

    UserExportVO getRoleById(Long id);

    Employee login2(LoginDto loginDto);
}
